<a  class="gallery"  title="{PHOTO_TITLE}" href="{PATH_PHOTOS}{FULLSIZE_IMG}" rel="album{PHAID}">
        <img class="gallery" src="{PATH_PHOTOS}{PREVIEW_IMG}" alt=""/>
</a>